<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="/user/tzadd">添加</a>
<table border="1">
    <tr>
        <td>ID</td>
        <td>姓名</td>
        <td>性别</td>
        <td>年龄</td>
        <td>手机号</td>
        <td>地址</td>
        <td>操作</td>
    </tr>
    <tr th:each="user:${list.list}">
        <td th:text="${user.getId()}"></td>
        <td th:text="${user.getName()}"></td>
        <td th:text="${user.getAge()}"></td>
        <td th:text="${user.getSex()}"></td>
        <td th:text="${user.getSjh()}"></td>
        <td th:text="${user.getDz()}"></td>
        <td>
            <a th:href="@{/user/del(id=${user.getId()})}">删除</a>
            <a th:href="@{/user/hx(id=${user.getId()})}">修改</a>
        </td>
    </tr>

</table>
<button type="button"><a href="/user/findAll?pageNum=1">首页</a></button>
<span th:each="a:${list.navigatepageNums}">
    <button type="button"><a th:href="@{/user/findAll(pageNum=${a})}">
        <span th:text="${a}"></span>
    </a></button>
</span>
<button type="button"><a th:href="@{/user/findAll(pageNum=${list.pages})}">尾页</a></button>
</body>
</html>